<div>
{if $WEB_APP.editform eq TRUE}
	{if !isset($hide_delete)}<form method="post" action="{$WEB_APP.action_url}" name="fieldsForm" id="fieldsForm">{/if}
{/if}
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
	
{if $WEB_APP.editform eq TRUE && $WEB_APP.list_actions_access}
	{if !isset($WEB_APP.hide_delete)}<th>#</th>{/if}
{/if}
{foreach from = $columns item = column}
	{if $WEB_APP.editform eq FALSE}
		<th>{$column->name}</th>
	{else}
		{if $WEB_APP.sort_field eq $column->title}
			{if $WEB_APP.sort_order eq "DESC"}
				<th><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a> <i class="icon-chevron-down"></i></th>
			{else}
				<th><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}&amp;order=DESC{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a> <i class="icon-chevron-up"></i></th>
			{/if}
		
		{else}
			<th><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a></th>
		{/if}
	{/if}
{/foreach}
{if $WEB_APP.editform eq TRUE && isset($WEB_APP.row_actions) && $WEB_APP.row_actions_access}
	<th>{$text.txt_actions}</th>
{/if}
	
</tr>
</thead>